<?php $this->widget('bootstrap.widgets.TbBreadcrumbs', array(
    'links'=>array('Pengumuman'),
));

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
    $('.search-form').slideToggle('fast');
    return false;
});
$('.search-form form').submit(function(){
    $.fn.yiiGridView.update('link-grid', {
        data: $(this).serialize()
    });
    return false;
});
");

?>

<br />
<h4>Kelola Konsultasi Hukum</h4>
<hr />






<?php $this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'link-grid',
	'dataProvider'=>$model->search(),
        'type'=>'striped bordered condensed',
        'template'=>'{summary}{pager}{items}{pager}',
	'columns'=>array(
		'nama',
		'alamat',
		array(
			'name'=>'judul',
			'type'=>'html',
			'value'=>'$data->judul',
			),
		array(
		    'header'=>'Isi Konsultasi',
			'type'=>'html',
			'value'=>'$data->isi',
			),	
		array(
			'header'=>'Tanggapan',
			'type'=>'html',
			'value'=>'ReplyKonsultasiHukum::model()->find("id_konsultasi_hukum=".$data->id." order by id desc")->reply',
			),		
       array(
            'class'=>'bootstrap.widgets.TbButtonColumn',
			'template' => '{view} {delete}',
			'buttons' => array(
			      'view' => array(
					'label'=> 'View',
					'options'=>array(
						'class'=>'btn btn-small view'
					)
				),	
                              
				'delete' => array(
					'label'=> 'Delete',
					'options'=>array(
						'class'=>'btn btn-small delete'
					)
				)
			),
            'htmlOptions'=>array('style'=>'width: 120px'),
           )
	),
)); ?>

